<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>User</title>
</head>
<body>
<table>
    <thead>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>手机号</td>
        <td>地址</td>
    </tr>
    </thead>
    <tbody>
    <tr th:each="user,iterStat : ${userList}">
        <td th:text="${iterStat.index + 1}"></td>
        <td th:text="${user.userName}"></td>
        <td th:text="${user.phone}"></td>
        <td th:text="${user.address}"></td>
    </tr>
    </tbody>
</table>

</body>
</html>